#include "RunCmd.h"
#include "ObjController.h"

CRunCmd::CRunCmd(void)
{
}


CRunCmd::~CRunCmd(void)
{
}

bool CRunCmd::ExcuteImpl(COMMAND& command)
{
	return Notify(command);
}

bool CRunCmd::Notify(COMMAND command)
{
	OBJ_MAP& objs = CObjController::Instance().Get();

	bool ret = false;
	for(OBJ_MAP::iterator it = objs.begin(); it != objs.end(); ++it)
	{
		ret = (*it).second->Excute(command) || ret;
	}

	return ret;
}